import request from '@/utils/request';

export const getTemporaryStorage = (type, key) =>
    request(`/api/oa/stash/query/${type}/${key}`, {
        method: 'GET'
    });

export const setTemporaryStorage = params =>
    request('/api/oa/stash/save', {
        method: 'POST',
        data: params
    });

export const delTemporaryStorage = (type, key) =>
    request(`/api/oa/stash/delete/${type}/${key}`, {
        method: 'DELETE'
    });
